// source --> http://www.pumaktrading.com/wp-content/plugins/eucookielaw/EUCookieLaw.js?ver=2.7.2 /** * EUCookieLaw: simple object to accomplish european law requirements about cookie transmission to clients * @class EUCookieLaw * @link https://github.com/diegolamonica/EUCookieLaw/ * @author Diego La Monica (diegolamonica) * @copyright 2015 Diego La Monica * @license http://www.gnu.org/licenses/lgpl-3.0-standalone.html GNU Lesser General Public License * @note This program is distributed in the hope that it will be useful - WITHOUT ANY WARRANTY; * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */ if (!window.Node){ var Node = { ELEMENT_NODE : 1, ATTRIBUTE_NODE : 2, TEXT_NODE : 3, CDATA_SECTION_NODE : 4, ENTITY_REFERENCE_NODE : 5, ENTITY_NODE : 6, PROCESSING_INSTRUCTION_NODE : 7, COMMENT_NODE : 8, DOCUMENT_NODE : 9, DOCUMENT_TYPE_NODE : 10, DOCUMENT_FRAGMENT_NODE : 11, NOTATION_NODE : 12 }; } var EUCOOKIELAW_VERSION = '2.7.0.1'; var EUCookieLaw = (function (doc) { var firstLanguage = false, getScrollTop = function (){ if(typeof pageYOffset != 'undefined'){ // most browsers except IE before #9 return pageYOffset; } else{ if(window.scrollY) return window.scrollY; var body = doc.body, //IE 'quirks' docEl = doc.documentElement; //IE with doctype return (docEl)? docEl.clientHeight: body.clientHeight; } }; var removeHTMLBanner = function () { var theHTMLBaner = doc.querySelector('#eucookielaw-in-html'); if(theBannerId!= 'eucookielaw-in-html' && theHTMLBaner){ theHTMLBaner.parentNode.removeChild(theHTMLBaner); } }, buildLanguageSwitcher = function(){ var langSwitcher = ''; if(settings.languages && typeof(settings.languages) === 'object') { var keys = Object.keys(settings.languages); if (keys.length > 1) { langSwitcher = ''; }else{ firstLanguage = keys[0]; } } return langSwitcher; }, buildBanner = function () { removeHTMLBanner(); if(theBannerId!='' && doc.querySelector('#'+ theBannerId)){ }else { var theDiv = doc.createElement("div"); theBannerId = 'eucookielaw-' + parseInt(Math.random() * 200); theDiv.setAttribute('id', theBannerId); theDiv.className = "eucookielaw-banner fixedon-" + settings.fixOn; if(settings.classes != ''){ theDiv.className += " " + settings.classes; } theDiv.innerHTML = '
' + ((settings.tag!='')?('<' + settings.tag + ' class="banner-title">' + ''):'') + '' + buildLanguageSwitcher() + '' + '
'; var firstNode = body.childNodes[0]; body.insertBefore(theDiv, firstNode); if(firstLanguage) (new EUCookieLaw).switchLanguage(firstLanguage); } }, setProperty = function (object, prop, _set, _get) { if (typeof(Object.defineProperty) === 'function') { var propObject = { configurable: true }; if (typeof(_set) == 'function') propObject['set'] = _set; if (typeof(_get) == 'function') propObject['get'] = _get; Object.defineProperty(object, prop, propObject); } else { if (typeof(_set) == 'function') object.__defineSetter__(prop, _set); if (typeof(_get) == 'function') object.__defineGetter__(prop, _get); } }, hasRejectedCookie = function(){ return /__eucookielaw=rejected/.test(doc.cookie.toString()); }, hasCookie = function(){ return /__eucookielaw=/.test(doc.cookie.toString()) && !hasRejectedCookie() }, applySettings = function(settings) { if(settings.languages && settings.languages['']) delete settings.languages['']; if(settings.languages && typeof(settings.languages) === 'object' && Object.keys(settings.languages).length>1){ // I will remove the default language from defaults settings, because it's managed console.log("Rimuovo la lingua predefinita"); delete defaultSettings.languages.Default; }else{ /* * Deprecated items will replace default settings for now. */ if(settings.languages === undefined) settings.languages = {}; if(Object.keys( settings.languages).length == 0 ) { settings.languages.Default = { title: settings.bannerTitle, message: settings.message, agreeLabel: settings.agreeLabel, disagreeLabel: settings.disagreeLabel }; firstLanguage = 'Default'; }else if(settings.languages.Default === undefined && Object.keys( settings.languages).length == 1){ /* * If it is just one language defined, then it will put into the "Default" object */ var lonelyKey = Object.keys( settings.languages); settings.languages.Default = settings.languages[lonelyKey]; delete settings.languages[lonelyKey]; firstLanguage = 'Default'; } } for (var key in defaultSettings) { if (settings[key] === undefined) { settings[key] = defaultSettings[key]; } } if(typeof(settings.cookieList) =='string'){ settings.cookieList = settings.cookieList.split(','); } return settings; }, originalCookie = doc.cookie, // For future use scrolled = false, instance = null, settings, didAChoice = hasCookie() || hasRejectedCookie(), // userStorage.getItem('rejected'), defaultSettings = { id: false, debug: false, agreeOnScroll: false, agreeOnClick: false, cookieEnabled: false, cookieRejected: false, showBanner: false, /** * @deprecated */ bannerTitle: '', /** * @deprecated */ message: 'La legge europea sulla privacy e la conservazione dei cookie richiede il tuo consenso prima di conservare i cookie. Me lo consenti?', /** * @deprecated */ disagreeLabel: '', /** * @deprecated */ agreeLabel: 'Agree', languages: { 'Default': { 'title': "", 'message': 'La legge europea sulla privacy e la conservazione dei cookie richiede il tuo consenso prima di conservare i cookie. Me lo consenti?', 'agreeLabel': "Sono d'accordo", 'disagreeLabel':"" } }, raiseLoadEvent: true, reload: false, tag: 'h1', fixOn: 'top', classes: '', duration: 0, minScroll: 100, remember: false, path: '/', domain: window.location.host, cookieList: [], blacklist: [], showAgreement: function () { if(settings.showBanner) { var _showBanner = function () { if (body) { buildBanner(); }else{ setTimeout(_showBanner, 50); } }; _showBanner(); }else { didAChoice = true; if (!instance.isRejected() && confirm(settings.message)) { instance.enableCookies(); } else { settings.cookieRejected = true; settings.cookieEnabled = false; } } return instance.isCookieEnabled(); } }, isOriginal = true, theBannerId = '', docWriteOverrided = {}, docWriteContext = undefined, body; return function EUCookieLaw(options) { if (instance != null) return instance; settings = applySettings(options); if(settings.id) theBannerId = settings.id; instance = this; var onAgree = function(){ var elements = document.querySelectorAll("[data-eucookielaw-attr]"); window.selectedElements = elements; // Global var for debug purpose for(var elIndex =0; elIndex < elements.length; elIndex++) { var element = elements[elIndex], theAttribute = element.getAttribute('data-eucookielaw-attr'), theValue = element.getAttribute('data-eucookielaw-dest'), theId = element.getAttribute('id'); switch (theAttribute){ case 'html': element.innerHTML = theValue; var epn = element.parentNode, ecn = element.childNodes; while(ecn[0]){ epn.insertBefore(ecn[0], element); } epn.removeChild(element); break; case 'direct': theValue = docWriteOverrided[theId]; element.innerHTML = theValue; element.setAttribute('style', ''); break; case 'script': docWriteContext = element; var script = (element.childNodes[0])?element.childNodes[0].innerHTML:docWriteOverrided[theId], f = new Function('', script); try { f(); }catch(e){ if (settings.debug) console.error("Something goes wrong in function execution", f.toString()); } docWriteContext.parentNode.removeChild( docWriteContext ); docWriteContext = undefined; break; default: element.setAttribute(theAttribute, theValue); } } }; var writeInternalCookie = function( value, expires ){ expires = (expires === undefined) ? '' : (';expires=' + expires); doc.cookie = "__eucookielaw=" + value + (settings.domain?(";domain=" + settings.domain):'') + ";path=" + settings.path + expires; }; this.enableCookies = function () { didAChoice = true; writeInternalCookie('', 'Thu, 01 Jan 1970 00:00:01 GMT'); settings.cookieEnabled = true; settings.cookieRejected = false; if (!isOriginal) { delete doc.cookie; if(!settings.reload) onAgree(); isOriginal = true; } var expiresCookie = ''; if(settings.duration!=0) { var expires = new Date(); expires.setDate(expires.getDate() + parseInt( settings.duration) ); if(settings.debug) console.log("Injected cookie expires on: ", expires); expiresCookie = ";expires=" + expires.toGMTString(); } writeInternalCookie('true', expiresCookie); removeBanner(); if(settings.reload) window.location.reload(true); }; this.reject = function () { if(!hasCookie()){ if(settings.debug) console.log("Calling Reject"); didAChoice = true; if(settings.remember) writeInternalCookie('rejected'); settings.cookieRejected = true; settings.cookieEnabled = false; removeBanner(); } }; function _switchLanguageElement( selector, html ){ var theElement = document.querySelector('#' +theBannerId + ' ' + selector); if(theElement) theElement.innerHTML = html; } this.switchLanguage = function( lang ) { var info = settings.languages[lang]; if (info) { _switchLanguageElement('.banner-title', info.title); _switchLanguageElement('.banner-message', info.message); _switchLanguageElement('.agree-button', info.agreeLabel); _switchLanguageElement('.disagree-button', info.disagreeLabel); } }; this.reconsider = function(){ writeInternalCookie('', 'Thu, 01 Jan 1970 00:00:01 GMT'); scrolled = false; didAChoice = false; settings.showAgreement(); }; this.isRejected = function () { return settings.cookieRejected; }; this.isCookieEnabled = function () { return settings.cookieEnabled; }; var removeBanner = function(){ removeHTMLBanner(); if(theBannerId!=''){ var theBanner = doc.getElementById(theBannerId); if(theBanner) theBanner.parentNode.removeChild(theBanner); theBannerId = ''; } if(!settings.cookieRejected) { var scripts = document.querySelectorAll('script[data-cookielaw-index]'); for (var i = 0; i < scripts.length; i++) { var script = scripts[i], idx = script.getAttribute('data-cookielaw-index'), next = script.nextSibling; if (next && next.className == 'eucookielaw-replaced-content') next.parentNode.removeChild(next); eucookieLawWriteHTML(script, idx); } var event = document.createEvent('Event'); if(settings.raiseLoadEvent) { event.initEvent('load', false, false); window.dispatchEvent(event); } } }; if(settings.showBanner) { var previousScrollTop = 0; var waitReady = function () { if (settings.debug) console.log(doc.readyState); if ((doc.readyState === 'complete' || doc.readyState === 'interactive') && doc.body) { body = doc.body; previousScrollTop = getScrollTop(); if(!hasRejectedCookie() && !hasCookie()){ buildBanner(); } else{ if(hasRejectedCookie()){ instance.reject(); } removeBanner(); } } else { setTimeout(waitReady, 100); } }; waitReady(); var evt = function(object, eventType, callback){ var eventAttacher = object.addEventListener || object.attachEvent ; if(eventAttacher){ eventAttacher(eventType, callback); } }; if (settings.agreeOnScroll){ previousScrollTop = getScrollTop(); evt(window, 'scroll', function () { window.title = 'scrolled? ' + (new Date().getMilliseconds()); if(!scrolled && body && Math.abs(getScrollTop() - previousScrollTop)>settings.minScroll && !didAChoice) { scrolled = true; instance.enableCookies(); removeBanner(); } }); } if (settings.agreeOnClick){ function isDescendantOf(parent, child) { var node = child.parentNode; if( node == null ) return false; if (node == parent) return true; return isDescendantOf(parent, node); } evt(window, 'click', function (event) { if(theBannerId=='') return; if( document.querySelector('#'+theBannerId) ) { if (!isDescendantOf(document.querySelector('#' + theBannerId), event.target) && !/eucookielaw-reconsider-button/.test(event.target.className)) { instance.enableCookies(); removeBanner(); } } }); } } if(/__eucookielaw=rejected/.test(doc.cookie)){ this.reject(); } if(hasCookie()) return instance; isOriginal = false; var blockCookie = function() { setProperty(doc, 'cookie', function (cookie) { if (settings.debug) console.info("Trying to write the cookie " + cookie); if (!settings.cookieEnabled) { if (settings.debug) console.log("But document cookie is not enabled"); var cookiePart = cookie.split('='), cookieAllowed = false; if(/^__eucookielaw$/.test(cookiePart[0]) ){ if (settings.debug) console.info("Is the technical cookie"); cookieAllowed = true; }else { if (settings.debug) console.log("Checking in cookie list"); for (var cookieIndex in settings.cookieList) { var cookieKey = settings.cookieList[cookieIndex], lastChar = cookieKey.substr(-1), regexString = "^" + ((lastChar == '*') ? (cookieKey.substr(0, cookieKey.length - 1) + '.*') : cookieKey) + "$", regexCookie = new RegExp(regexString); if (settings.debug) console.log("Checking if the cookie '" + cookiePart[0] + "' matches the value defined in " + cookieKey + " (rule: " + regexString + ")"); if (regexCookie.test(cookiePart[0])) { cookieAllowed = true; break; } } } if(cookieAllowed){ if (settings.debug) console.log("The cookie " + cookiePart[0] + ' is allowed'); delete doc.cookie; doc.cookie = cookie; if (settings.debug) console.info(doc.cookie); blockCookie(); } else { if (settings.debug) console.log("The cookie " + cookiePart[0] + ' is not allowed'); if (settings.showAgreement()) { instance.enableCookies(); doc.cookie = cookie; } } return false; } else { if (settings.debug) console.warn("I'm resetting the original document cookie"); delete doc.cookie; doc.cookie = cookie; } return cookie; }, function () { return originalCookie; }); }; if(!instance.isCookieEnabled()) blockCookie(); var documentWrite = doc.write; doc.write = function(buffer) { function getUniqueId(){ while(true){ var id = '__eucookielaw-document-write-' + (Math.random() * 200); if(!document.getElementById(id)) break; } return id; } if(!instance.isCookieEnabled()) { if(settings.debug) console.log("Cookie not enabled setting protection"); for (var i = 0; i < settings.blacklist.length; i++) { if(settings.debug) console.log(buffer); var entry = settings.blacklist[i]; if (buffer.indexOf(entry) !== -1) { if(settings.debug) console.log(entry); var id = getUniqueId(); docWriteOverrided[id] = buffer; buffer = ''; break; } } }else{ docWriteContext = document.currentScript; } if(docWriteContext) { var docFrag = doc.createDocumentFragment(), docTemp = doc.createElement('div'), parentContainer = docWriteContext.parentNode; while(parentContainer.tagName.toLowerCase() == 'script'){ parentContainer = parentContainer.parentNode; } docTemp.innerHTML = buffer; while (docTemp.firstChild) docFrag.appendChild(docTemp.firstChild); if (docWriteContext.nextSibling) { if(settings.debug) console.log("appending after"); parentContainer.insertBefore(docFrag, docWriteContext.nextSibling); } else { parentContainer.appendChild(docFrag); if(settings.debug) console.log("appending as last"); } }else{ documentWrite.apply(document,[buffer]); } }; }; })(document); var EUCookieLawHTMLFragments = EUCookieLawHTMLFragments || []; function eucookieLawWriteHTML(context, index){ var docFrag = document.createDocumentFragment(), div = document.createElement('div'), parent = context.parentElement; div.innerHTML = EUCookieLawHTMLFragments[index]; docFrag.appendChild(div); while( div.childNodes.length > 0){ var currentNode = div.childNodes[0]; if(currentNode.nodeType == Node.ELEMENT_NODE && currentNode.tagName.toString().toLowerCase() == 'script'){ var async = currentNode.getAttribute('async'), defer = currentNode.getAttribute('defer'), src = currentNode.getAttribute('src'), type = currentNode.getAttribute('type'), html = currentNode.innerHTML, scriptTag = document.createElement('script'); if(async!=undefined) scriptTag.setAttribute('async', async); if(defer!=undefined) scriptTag.setAttribute('defer', defer); if(src!=undefined) scriptTag.setAttribute('src', src); if(type!=undefined) scriptTag.setAttribute('type', type); scriptTag.innerHTML = html; if(async!=undefined){ document.body.appendChild(scriptTag); }else{ context.appendChild(scriptTag); } div.removeChild(currentNode); }else{ docFrag.appendChild(currentNode); } } docFrag.removeChild(div); parent.insertBefore(docFrag, context); parent.removeChild(context); }; // source --> http://www.pumaktrading.com/wp-content/plugins/eucookielaw/wpEUCookieLaw.js?ver=2.7.2 new EUCookieLaw( euCookieLawConfig ); // source --> http://www.pumaktrading.com/wp-content/plugins/fancybox-plus/js/jquery.metadata.pack.js?ver=1.0.1 /* * Metadata - jQuery plugin for parsing metadata from elements * * Copyright (c) 2006 John Resig, Yehuda Katz, J�örn Zaefferer, Paul McLanahan * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * Revision: $Id: jquery.metadata.js 3620 2007-10-10 20:55:38Z pmclanahan $ * */ eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(9($){$.r({3:{7:{8:\'l\',h:\'3\',q:/({.*})/,4:\'3\'},w:9(a,b){g.7.8=a;g.7.h=b},j:9(b,c){5 d=$.r({},g.7,c);2(!d.4.o)d.4=\'3\';5 a=$.n(b,d.4);2(a)6 a;a="{}";2(d.8=="l"){5 m=d.q.v(b.u);2(m)a=m[1]}k 2(d.8=="t"){2(!b.i)6;5 e=b.i(d.h);2(e.o)a=$.s(e[0].C)}k 2(b.p!=A){5 f=b.p(d.h);2(f)a=f}2(a.z(\'{\')<0)a="{"+a+"}";a=y("("+a+")");$.n(b,d.4,a);6 a}}});$.x.3=9(a){6 $.3.j(g[0],a)}})(B);',39,39,'||if|metadata|single|var|return|defaults|type|function|||||||this|name|getElementsByTagName|get|else|class||data|length|getAttribute|cre|extend|trim|elem|className|exec|setType|fn|eval|indexOf|undefined|jQuery|innerHTML'.split('|'),0,{})); // source --> http://www.pumaktrading.com/wp-content/plugins/fancybox-plus/fancybox/jquery.easing-1.3.pack.js?ver=1.0.1 /* * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ * * Uses the built in easing capabilities added In jQuery 1.1 * to offer multiple easing options * * TERMS OF USE - jQuery Easing * * Open source under the BSD License. * * Copyright © 2008 George McGinley Smith * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, this list of * conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list * of conditions and the following disclaimer in the documentation and/or other materials * provided with the distribution. * * Neither the name of the author nor the names of contributors may be used to endorse * or promote products derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. * */ // t: current time, b: begInnIng value, c: change In value, d: duration eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('h.i[\'1a\']=h.i[\'z\'];h.O(h.i,{y:\'D\',z:9(x,t,b,c,d){6 h.i[h.i.y](x,t,b,c,d)},17:9(x,t,b,c,d){6 c*(t/=d)*t+b},D:9(x,t,b,c,d){6-c*(t/=d)*(t-2)+b},13:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t+b;6-c/2*((--t)*(t-2)-1)+b},X:9(x,t,b,c,d){6 c*(t/=d)*t*t+b},U:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t+1)+b},R:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t+b;6 c/2*((t-=2)*t*t+2)+b},N:9(x,t,b,c,d){6 c*(t/=d)*t*t*t+b},M:9(x,t,b,c,d){6-c*((t=t/d-1)*t*t*t-1)+b},L:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t+b;6-c/2*((t-=2)*t*t*t-2)+b},K:9(x,t,b,c,d){6 c*(t/=d)*t*t*t*t+b},J:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t*t*t+1)+b},I:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t*t+b;6 c/2*((t-=2)*t*t*t*t+2)+b},G:9(x,t,b,c,d){6-c*8.C(t/d*(8.g/2))+c+b},15:9(x,t,b,c,d){6 c*8.n(t/d*(8.g/2))+b},12:9(x,t,b,c,d){6-c/2*(8.C(8.g*t/d)-1)+b},Z:9(x,t,b,c,d){6(t==0)?b:c*8.j(2,10*(t/d-1))+b},Y:9(x,t,b,c,d){6(t==d)?b+c:c*(-8.j(2,-10*t/d)+1)+b},W:9(x,t,b,c,d){e(t==0)6 b;e(t==d)6 b+c;e((t/=d/2)<1)6 c/2*8.j(2,10*(t-1))+b;6 c/2*(-8.j(2,-10*--t)+2)+b},V:9(x,t,b,c,d){6-c*(8.o(1-(t/=d)*t)-1)+b},S:9(x,t,b,c,d){6 c*8.o(1-(t=t/d-1)*t)+b},Q:9(x,t,b,c,d){e((t/=d/2)<1)6-c/2*(8.o(1-t*t)-1)+b;6 c/2*(8.o(1-(t-=2)*t)+1)+b},P:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6-(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b},H:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6 a*8.j(2,-10*t)*8.n((t*d-s)*(2*8.g)/p)+c+b},T:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d/2)==2)6 b+c;e(!p)p=d*(.3*1.5);e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);e(t<1)6-.5*(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b;6 a*8.j(2,-10*(t-=1))*8.n((t*d-s)*(2*8.g)/p)*.5+c+b},F:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*(t/=d)*t*((s+1)*t-s)+b},E:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},16:9(x,t,b,c,d,s){e(s==u)s=1.l;e((t/=d/2)<1)6 c/2*(t*t*(((s*=(1.B))+1)*t-s))+b;6 c/2*((t-=2)*t*(((s*=(1.B))+1)*t+s)+2)+b},A:9(x,t,b,c,d){6 c-h.i.v(x,d-t,0,c,d)+b},v:9(x,t,b,c,d){e((t/=d)<(1/2.k)){6 c*(7.q*t*t)+b}m e(t<(2/2.k)){6 c*(7.q*(t-=(1.5/2.k))*t+.k)+b}m e(t<(2.5/2.k)){6 c*(7.q*(t-=(2.14/2.k))*t+.11)+b}m{6 c*(7.q*(t-=(2.18/2.k))*t+.19)+b}},1b:9(x,t,b,c,d){e(t http://www.pumaktrading.com/wp-content/plugins/fancybox-plus/fancybox/jquery.mousewheel-3.0.4.pack.js?ver=1.0.1 /*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net) * Licensed under the MIT License (LICENSE.txt). * * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers. * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix. * Thanks to: Seamus Leahy for adding deltaX and deltaY * * Version: 3.0.4 * * Requires: 1.2.2+ */ (function(d){function g(a){var b=a||window.event,i=[].slice.call(arguments,1),c=0,h=0,e=0;a=d.event.fix(b);a.type="mousewheel";if(a.wheelDelta)c=a.wheelDelta/120;if(a.detail)c=-a.detail/3;e=c;if(b.axis!==undefined&&b.axis===b.HORIZONTAL_AXIS){e=0;h=-1*c}if(b.wheelDeltaY!==undefined)e=b.wheelDeltaY/120;if(b.wheelDeltaX!==undefined)h=-1*b.wheelDeltaX/120;i.unshift(a,c,h,e);return d.event.handle.apply(this,i)}var f=["DOMMouseScroll","mousewheel"];d.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a= f.length;a;)this.addEventListener(f[--a],g,false);else this.onmousewheel=g},teardown:function(){if(this.removeEventListener)for(var a=f.length;a;)this.removeEventListener(f[--a],g,false);else this.onmousewheel=null}};d.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery); // source --> http://www.pumaktrading.com/wp-content/plugins/fancybox-plus/fancybox/jquery.fancybox-1.3.4.pack.js?ver=1.0.1 /* * FancyBox - jQuery Plugin * Simple and fancy lightbox alternative * * Examples and documentation at: http://fancybox.net * * Copyright (c) 2008 - 2010 Janis Skarnelis * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated. * * Version: 1.3.4 (11/11/2010) * Requires: jQuery v1.3+ * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html */ ;(function(b){var m,t,u,f,D,j,E,n,z,A,q=0,e={},o=[],p=0,d={},l=[],G=null,v=new Image,J=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,W=/[^\.]\.(swf)\s*$/i,K,L=1,y=0,s="",r,i,h=false,B=b.extend(b("
")[0],{prop:0}),M=b.browser.msie&&b.browser.version<7&&!window.XMLHttpRequest,N=function(){t.hide();v.onerror=v.onload=null;G&&G.abort();m.empty()},O=function(){if(false===e.onError(o,q,e)){t.hide();h=false}else{e.titleShow=false;e.width="auto";e.height="auto";m.html('

The requested content cannot be loaded.
Please try again later.

'); F()}},I=function(){var a=o[q],c,g,k,C,P,w;N();e=b.extend({},b.fn.fancybox.defaults,typeof b(a).data("fancybox")=="undefined"?e:b(a).data("fancybox"));w=e.onStart(o,q,e);if(w===false)h=false;else{if(typeof w=="object")e=b.extend(e,w);k=e.title||(a.nodeName?b(a).attr("title"):a.title)||"";if(a.nodeName&&!e.orig)e.orig=b(a).children("img:first").length?b(a).children("img:first"):b(a);if(k===""&&e.orig&&e.titleFromAlt)k=e.orig.attr("alt");c=e.href||(a.nodeName?b(a).attr("href"):a.href)||null;if(/^(?:javascript)/i.test(c)|| c=="#")c=null;if(e.type){g=e.type;if(!c)c=e.content}else if(e.content)g="html";else if(c)g=c.match(J)?"image":c.match(W)?"swf":b(a).hasClass("iframe")?"iframe":c.indexOf("#")===0?"inline":"ajax";if(g){if(g=="inline"){a=c.substr(c.indexOf("#"));g=b(a).length>0?"inline":"ajax"}e.type=g;e.href=c;e.title=k;if(e.autoDimensions)if(e.type=="html"||e.type=="inline"||e.type=="ajax"){e.width="auto";e.height="auto"}else e.autoDimensions=false;if(e.modal){e.overlayShow=true;e.hideOnOverlayClick=false;e.hideOnContentClick= false;e.enableEscapeButton=false;e.showCloseButton=false}e.padding=parseInt(e.padding,10);e.margin=parseInt(e.margin,10);m.css("padding",e.padding+e.margin);b(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){b(this).replaceWith(j.children())});switch(g){case "html":m.html(e.content);F();break;case "inline":if(b(a).parent().is("#fancybox-content")===true){h=false;break}b('
').hide().insertBefore(b(a)).bind("fancybox-cleanup",function(){b(this).replaceWith(j.children())}).bind("fancybox-cancel", function(){b(this).replaceWith(m.children())});b(a).appendTo(m);F();break;case "image":h=false;b.fancybox.showActivity();v=new Image;v.onerror=function(){O()};v.onload=function(){h=true;v.onerror=v.onload=null;e.width=v.width;e.height=v.height;b("").attr({id:"fancybox-img",src:v.src,alt:e.title}).appendTo(m);Q()};v.src=c;break;case "swf":e.scrolling="no";C='';P="";b.each(e.swf,function(x,H){C+='';P+=" "+x+'="'+H+'"'});C+='";m.html(C);F();break;case "ajax":h=false;b.fancybox.showActivity();e.ajax.win=e.ajax.success;G=b.ajax(b.extend({},e.ajax,{url:c,data:e.ajax.data||{},error:function(x){x.status>0&&O()},success:function(x,H,R){if((typeof R=="object"?R:G).status==200){if(typeof e.ajax.win== "function"){w=e.ajax.win(c,x,H,R);if(w===false){t.hide();return}else if(typeof w=="string"||typeof w=="object")x=w}m.html(x);F()}}}));break;case "iframe":Q()}}else O()}},F=function(){var a=e.width,c=e.height;a=a.toString().indexOf("%")>-1?parseInt((b(window).width()-e.margin*2)*parseFloat(a)/100,10)+"px":a=="auto"?"auto":a+"px";c=c.toString().indexOf("%")>-1?parseInt((b(window).height()-e.margin*2)*parseFloat(c)/100,10)+"px":c=="auto"?"auto":c+"px";m.wrapInner('
');e.width=m.width();e.height=m.height();Q()},Q=function(){var a,c;t.hide();if(f.is(":visible")&&false===d.onCleanup(l,p,d)){b.event.trigger("fancybox-cancel");h=false}else{h=true;b(j.add(u)).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");f.is(":visible")&&d.titlePosition!=="outside"&&f.css("height",f.height());l=o;p=q;d=e;if(d.overlayShow){u.css({"background-color":d.overlayColor, opacity:d.overlayOpacity,cursor:d.hideOnOverlayClick?"pointer":"auto",height:b(document).height()});if(!u.is(":visible")){M&&b("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"});u.show()}}else u.hide();i=X();s=d.title||"";y=0;n.empty().removeAttr("style").removeClass();if(d.titleShow!==false){if(b.isFunction(d.titleFormat))a=d.titleFormat(s,l,p,d);else a=s&&s.length? d.titlePosition=="float"?'
'+s+'
':'
'+s+"
":false;s=a;if(!(!s||s==="")){n.addClass("fancybox-title-"+d.titlePosition).html(s).appendTo("body").show();switch(d.titlePosition){case "inside":n.css({width:i.width-d.padding*2,marginLeft:d.padding,marginRight:d.padding}); y=n.outerHeight(true);n.appendTo(D);i.height+=y;break;case "over":n.css({marginLeft:d.padding,width:i.width-d.padding*2,bottom:d.padding}).appendTo(D);break;case "float":n.css("left",parseInt((n.width()-i.width-40)/2,10)*-1).appendTo(f);break;default:n.css({width:i.width-d.padding*2,paddingLeft:d.padding,paddingRight:d.padding}).appendTo(f)}}}n.hide();if(f.is(":visible")){b(E.add(z).add(A)).hide();a=f.position();r={top:a.top,left:a.left,width:f.width(),height:f.height()};c=r.width==i.width&&r.height== i.height;j.fadeTo(d.changeFade,0.3,function(){var g=function(){j.html(m.contents()).fadeTo(d.changeFade,1,S)};b.event.trigger("fancybox-change");j.empty().removeAttr("filter").css({"border-width":d.padding,width:i.width-d.padding*2,height:e.autoDimensions?"auto":i.height-y-d.padding*2});if(c)g();else{B.prop=0;b(B).animate({prop:1},{duration:d.changeSpeed,easing:d.easingChange,step:T,complete:g})}})}else{f.removeAttr("style");j.css("border-width",d.padding);if(d.transitionIn=="elastic"){r=V();j.html(m.contents()); f.show();if(d.opacity)i.opacity=0;B.prop=0;b(B).animate({prop:1},{duration:d.speedIn,easing:d.easingIn,step:T,complete:S})}else{d.titlePosition=="inside"&&y>0&&n.show();j.css({width:i.width-d.padding*2,height:e.autoDimensions?"auto":i.height-y-d.padding*2}).html(m.contents());f.css(i).fadeIn(d.transitionIn=="none"?0:d.speedIn,S)}}}},Y=function(){if(d.enableEscapeButton||d.enableKeyboardNav)b(document).bind("keydown.fb",function(a){if(a.keyCode==27&&d.enableEscapeButton){a.preventDefault();b.fancybox.close()}else if((a.keyCode== 37||a.keyCode==39)&&d.enableKeyboardNav&&a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&a.target.tagName!=="SELECT"){a.preventDefault();b.fancybox[a.keyCode==37?"prev":"next"]()}});if(d.showNavArrows){if(d.cyclic&&l.length>1||p!==0)z.show();if(d.cyclic&&l.length>1||p!=l.length-1)A.show()}else{z.hide();A.hide()}},S=function(){if(!b.support.opacity){j.get(0).style.removeAttribute("filter");f.get(0).style.removeAttribute("filter")}e.autoDimensions&&j.css("height","auto");f.css("height","auto"); s&&s.length&&n.show();d.showCloseButton&&E.show();Y();d.hideOnContentClick&&j.bind("click",b.fancybox.close);d.hideOnOverlayClick&&u.bind("click",b.fancybox.close);b(window).bind("resize.fb",b.fancybox.resize);d.centerOnScroll&&b(window).bind("scroll.fb",b.fancybox.center);if(d.type=="iframe")b('').appendTo(j); f.show();h=false;b.fancybox.center();d.onComplete(l,p,d);var a,c;if(l.length-1>p){a=l[p+1].href;if(typeof a!=="undefined"&&a.match(J)){c=new Image;c.src=a}}if(p>0){a=l[p-1].href;if(typeof a!=="undefined"&&a.match(J)){c=new Image;c.src=a}}},T=function(a){var c={width:parseInt(r.width+(i.width-r.width)*a,10),height:parseInt(r.height+(i.height-r.height)*a,10),top:parseInt(r.top+(i.top-r.top)*a,10),left:parseInt(r.left+(i.left-r.left)*a,10)};if(typeof i.opacity!=="undefined")c.opacity=a<0.5?0.5:a;f.css(c); j.css({width:c.width-d.padding*2,height:c.height-y*a-d.padding*2})},U=function(){return[b(window).width()-d.margin*2,b(window).height()-d.margin*2,b(document).scrollLeft()+d.margin,b(document).scrollTop()+d.margin]},X=function(){var a=U(),c={},g=d.autoScale,k=d.padding*2;c.width=d.width.toString().indexOf("%")>-1?parseInt(a[0]*parseFloat(d.width)/100,10):d.width+k;c.height=d.height.toString().indexOf("%")>-1?parseInt(a[1]*parseFloat(d.height)/100,10):d.height+k;if(g&&(c.width>a[0]||c.height>a[1]))if(e.type== "image"||e.type=="swf"){g=d.width/d.height;if(c.width>a[0]){c.width=a[0];c.height=parseInt((c.width-k)/g+k,10)}if(c.height>a[1]){c.height=a[1];c.width=parseInt((c.height-k)*g+k,10)}}else{c.width=Math.min(c.width,a[0]);c.height=Math.min(c.height,a[1])}c.top=parseInt(Math.max(a[3]-20,a[3]+(a[1]-c.height-40)*0.5),10);c.left=parseInt(Math.max(a[2]-20,a[2]+(a[0]-c.width-40)*0.5),10);return c},V=function(){var a=e.orig?b(e.orig):false,c={};if(a&&a.length){c=a.offset();c.top+=parseInt(a.css("paddingTop"), 10)||0;c.left+=parseInt(a.css("paddingLeft"),10)||0;c.top+=parseInt(a.css("border-top-width"),10)||0;c.left+=parseInt(a.css("border-left-width"),10)||0;c.width=a.width();c.height=a.height();c={width:c.width+d.padding*2,height:c.height+d.padding*2,top:c.top-d.padding-20,left:c.left-d.padding-20}}else{a=U();c={width:d.padding*2,height:d.padding*2,top:parseInt(a[3]+a[1]*0.5,10),left:parseInt(a[2]+a[0]*0.5,10)}}return c},Z=function(){if(t.is(":visible")){b("div",t).css("top",L*-40+"px");L=(L+1)%12}else clearInterval(K)}; b.fn.fancybox=function(a){if(!b(this).length)return this;b(this).data("fancybox",b.extend({},a,b.metadata?b(this).metadata():{})).unbind("click.fb").bind("click.fb",function(c){c.preventDefault();if(!h){h=true;b(this).blur();o=[];q=0;c=b(this).attr("rel")||"";if(!c||c==""||c==="nofollow")o.push(this);else{o=b("a[rel="+c+"], area[rel="+c+"]");q=o.index(this)}I()}});return this};b.fancybox=function(a,c){var g;if(!h){h=true;g=typeof c!=="undefined"?c:{};o=[];q=parseInt(g.index,10)||0;if(b.isArray(a)){for(var k= 0,C=a.length;ko.length||q<0)q=0;I()}};b.fancybox.showActivity=function(){clearInterval(K);t.show();K=setInterval(Z,66)};b.fancybox.hideActivity=function(){t.hide()};b.fancybox.next=function(){return b.fancybox.pos(p+ 1)};b.fancybox.prev=function(){return b.fancybox.pos(p-1)};b.fancybox.pos=function(a){if(!h){a=parseInt(a);o=l;if(a>-1&&a1){q=a>=l.length?0:l.length-1;I()}}};b.fancybox.cancel=function(){if(!h){h=true;b.event.trigger("fancybox-cancel");N();e.onCancel(o,q,e);h=false}};b.fancybox.close=function(){function a(){u.fadeOut("fast");n.empty().hide();f.hide();b.event.trigger("fancybox-cleanup");j.empty();d.onClosed(l,p,d);l=e=[];p=q=0;d=e={};h=false}if(!(h||f.is(":hidden"))){h= true;if(d&&false===d.onCleanup(l,p,d))h=false;else{N();b(E.add(z).add(A)).hide();b(j.add(u)).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");j.find("iframe").attr("src",M&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank");d.titlePosition!=="inside"&&n.empty();f.stop();if(d.transitionOut=="elastic"){r=V();var c=f.position();i={top:c.top,left:c.left,width:f.width(),height:f.height()};if(d.opacity)i.opacity=1;n.empty().hide();B.prop=1; b(B).animate({prop:0},{duration:d.speedOut,easing:d.easingOut,step:T,complete:a})}else f.fadeOut(d.transitionOut=="none"?0:d.speedOut,a)}}};b.fancybox.resize=function(){u.is(":visible")&&u.css("height",b(document).height());b.fancybox.center(true)};b.fancybox.center=function(a){var c,g;if(!h){g=a===true?1:0;c=U();!g&&(f.width()>c[0]||f.height()>c[1])||f.stop().animate({top:parseInt(Math.max(c[3]-20,c[3]+(c[1]-j.height()-40)*0.5-d.padding)),left:parseInt(Math.max(c[2]-20,c[2]+(c[0]-j.width()-40)*0.5- d.padding))},typeof a=="number"?a:200)}};b.fancybox.init=function(){if(!b("#fancybox-wrap").length){b("body").append(m=b('
'),t=b('
'),u=b('
'),f=b('
'));D=b('
').append('
').appendTo(f); D.append(j=b('
'),E=b(''),n=b('
'),z=b(''),A=b(''));E.click(b.fancybox.close);t.click(b.fancybox.cancel);z.click(function(a){a.preventDefault();b.fancybox.prev()});A.click(function(a){a.preventDefault();b.fancybox.next()}); b.fn.mousewheel&&f.bind("mousewheel.fb",function(a,c){if(h)a.preventDefault();else if(b(a.target).get(0).clientHeight==0||b(a.target).get(0).scrollHeight===b(a.target).get(0).clientHeight){a.preventDefault();b.fancybox[c>0?"prev":"next"]()}});b.support.opacity||f.addClass("fancybox-ie");if(M){t.addClass("fancybox-ie6");f.addClass("fancybox-ie6");b('').prependTo(D)}}}; b.fn.fancybox.defaults={padding:10,margin:40,opacity:false,modal:false,cyclic:false,scrolling:"auto",width:560,height:340,autoScale:true,autoDimensions:true,centerOnScroll:false,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:true,hideOnContentClick:false,overlayShow:true,overlayOpacity:0.7,overlayColor:"#777",titleShow:true,titlePosition:"float",titleFormat:null,titleFromAlt:false,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing", easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,enableKeyboardNav:true,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}};b(document).ready(function(){b.fancybox.init()})})(jQuery);